//
//  UIButton+BKMyOrderButton.m
//  bestkeep
//
//  Created by Mr. Wu on 16/12/22.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import "UIButton+BKMyOrderButton.h"
#import "BK_OD_Tool.h"
#define BORDERCOLOR_GREEN   RGB(27, 188, 155)  //边框颜色_绿
#define BORDERCOLOR_GRAY    RGB(218, 218, 218) //边框颜色_灰
#define TEXTCOLOR_GREEN     RGB(27, 188, 155)  //字体颜色_绿
#define TEXTCOLOR_GRAY      RGB(102, 102, 102) //字体颜色_灰
@implementation UIButton (BKMyOrderButton)
+(instancetype)buttonWithTitle:(NSString *)title{
    UIButton *button = [UIButton new];
    [button setTitle:@"加载中" forState:UIControlStateNormal];
    [button.titleLabel setFont:Font13];
    button.layer.borderColor = BORDERCOLOR_GRAY.CGColor;
    button.layer.borderWidth = 0.6;
    [button.layer setCornerRadius:5];
    [button setTitleColor:TEXTCOLOR_GRAY  forState:UIControlStateNormal];
    if ([title isEqualToString:@"1"]) {
        button.layer.borderColor = BORDERCOLOR_GREEN.CGColor;
        [button setTitleColor:TEXTCOLOR_GREEN  forState:UIControlStateNormal];
        
    }
    
    return button;
}
@end
